<template>
  <div id="app">
    <div class="left">
      <router-link to="/home">首页</router-link>
      <router-link to="/self">个人信息</router-link>
      <router-link to="/mycourse">我的课程</router-link>
      <router-link to="/score">我的成绩</router-link>
      <router-link to="/timetable">我的课表</router-link>
      <router-link to="/slot">选课</router-link>
    </div>
    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>

export default {
  name: 'App',
  data() {
    return {};
  }
};
</script>

<style>
#app {
  width: 100%;
  /* 100vw视口宽  100vh视口高 */
  height: 95vh;
  padding: 20px;
}
.left{
  width: 20%;
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.left a{
  font-size: 20px;
  color: #000;
  text-decoration: none;
  padding: 10px;
  border-bottom: 2px solid #d1d0d0;
  text-align: center;
}
.left a.router-link-active{
  color: #fff;
  background-color: #746ae3;
}
.left a:hover{
  color: #fff;
  background-color: #746ae3;
}
.right{
  float: right;
  width: 80%;
  height: 95vh;
  box-sizing: border-box;
  padding-left: 20px;
  
}
</style>